/**
 * 获取uuid
 */
export class UUIDGenerator {
  public static gen(): string {
    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
      return (c === 'x' ? (Math.random() * 16) | 0 : 8).toString(16)
    })
  }
}
